package com.cf.util;

/**
 * boot-awm-TypeUtil
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/2 下午 02:28
 */
public class TypeUtil {
    /**
     * 判断数据是否是基本类型
     *
     * @param className
     * @return
     */
    public static boolean isBaseType(Class className) {
        if (className.equals(Integer.class) ||
                className.equals(Byte.class) ||
                className.equals(Long.class) ||
                className.equals(Double.class) ||
                className.equals(Float.class) ||
                className.equals(Character.class) ||
                className.equals(Short.class) ||
                className.equals(Boolean.class) ||
                className.equals(String.class)) {
            return true;
        }
        return false;
    }
}
